package com.jsz.peini.mapper.seller;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;

import com.jsz.peini.bean.seller.SellerDiscount;
import com.jsz.peini.bean.seller.SellerInfo;
import com.jsz.peini.bean.seller.SellerInfoExample;
import com.jsz.peini.bean.seller.SellerJudge;

public interface SellerInfoMapper {
	
	int deleteByPrimaryKey(Integer id);

    int insert(SellerInfo record);

    int insertSelective(SellerInfo record);

    List<SellerInfo> selectByExampleWithBLOBs(SellerInfoExample example);

    List<SellerInfo> selectByExample(SellerInfoExample example);

    SellerInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SellerInfo record);

    int updateByPrimaryKeyWithBLOBs(SellerInfo record);

    int updateByPrimaryKey(SellerInfo record);

    SellerInfo selectById(Integer id);
    
    List<SellerInfo> selectList(SellerInfo sellerInfo);
    
    List<LinkedHashMap<String,Object>> selectBySellerInfo(SellerInfo sellInfo);
    
    List<LinkedHashMap<String,Object>> getSellerCodesBySellerCodes();
    
    List<SellerInfo> selectBySearch(SellerInfo sellerInfo);
    
    List<SellerInfo> selectListBySearch(SellerInfo sellerInfo);
    
    //更新评价分数
    int updateByJudge(SellerJudge sellerJudge);
    
    //更新店铺状态
    int updateByStatus(SellerInfo sellerInfo);
    
    //获取商家所有优惠券
    List<HashMap<String,Object>> getSellerCoupons(Integer sellerId);
    
  	//获取商家所有打折信息
    SellerDiscount getSellerDiscount(SellerDiscount sellerDiscount);
    
    //获取商家所有图像
    List<HashMap<String,Object>> getSellerImages(int sellerId);
    
    SellerInfo getSellerInfoById(Integer id);
}